<template>
	<view class="content">
		<view class="header">
			<view>竭诚为您服务</view>
			<view>客服服务时间为：10：00-18：30</view>
		</view>
		<!-- <view class="section">
			<image src="https://pd.pdaxiang.com/upload/static/user/kefu1.png"></image>
			<view class="center">
				<text>电话客服</text>
				<text>{{kefuList.phone}}</text>
			</view>
		</view> -->
		<view class="section">
			<image :src="iconurl+ '/static/user/kefu2.png'"></image>
			<view class="center">
				<text>微信客服</text>
				<text>{{kefuList.weixin}}</text>
			</view>
		</view>
	</view>
</template>

<script>
export default {
	data() {
		return {
			kefuList:{
				phone:"",
				weixin:"",
			},
			iconurl:this.$configs.urls
		};
	},
	onShow() {
		this.getlist();
	},
	onPullDownRefresh() {
		this.page=1;
		this.kefuList={};
		this.getlist()
		setTimeout(function() {
			uni.stopPullDownRefresh();
		}, 500);
		 clearTimeout();
	},
	methods:{
		getlist(){
			this.$Request.get(this.$api.user.kefu).then(res => {
				////console.log(res,"客服");
				this.kefuList = res.data;
			});
		}
	}
};
</script>

<style lang="scss" scoped>
	.content{
		min-height: 100vh;
		background: #FFFFFF;
		.section{
			width: 690rpx;
			min-height: 120rpx;
			padding: 25rpx 38rpx;
			margin: 0 auto;
			margin-bottom: 38rpx;
			background: #FFFFFF;
			border-radius: 10rpx;
			display: flex;
			align-items: center;
			box-shadow: 0px 0px 6px rgba(0, 0, 0, 0.1);
			image{
				width: 104rpx;
				height: 106rpx;
				margin-right: 44rpx;
			}
			.center{
				display: flex;
				flex-direction: column;
				text:nth-child(1){
					font-size: 28rpx;
					font-family: PingFang SC;
					font-weight: 500;
					color: #333;
				}
				text:nth-child(2){
					font-size: 18rpx;
					font-family: PingFang SC;
					font-weight: 400;
					color: #333;
					margin-top: 10rpx;
				}
			}
		}
		.header{
			padding: 40rpx 40rpx 62rpx 40rpx;
			view:nth-child(1){
				font-size: 38rpx;
				font-family: PingFang SC;
				font-weight: bold;
				color: #282828;
			}
			view:nth-child(2){
				font-size: 32rpx;
				font-family: PingFang SC;
				font-weight: 500;
				color: #282828;
				margin-top: 10rpx;
			}
		}
	}
</style>
